package cc.lucien.decorator;

/**
 * @author lucien-ma
 * @date 2021/10/29
 * @apiNote
 */
public class Test {
    public static void main(String[] args) {
        Person xiaoMing = new XiaoMing();
        xiaoMing = new Shirt(xiaoMing);
        xiaoMing = new Trousers(xiaoMing);
        xiaoMing.show();
        System.out.println("总共消费" + xiaoMing.cost());
    }
}
